|
|
|
|
|
|
|
can set them up in design mode; this way, you don't have to do anything while the program is running. The styles of panels are summarized in Table 12.5. Each of these styles is also displayed in Figure 12.28. |
|
|
|
|
| Table 12.5 Panel Styles Available to Your Programs | | Setting | Description | | sbrText | Displays text or a bitmap. The text displayed is contained in the Text property of the panel, whereas the bitmap is contained in the Picture property. | | sbrCaps | Handles the status of the Caps Lock key. This panel displays CAPS in bold letters when the key is on and displays the letters dimmed when the key is off. | | sbrNum | Handles the status of the Num Lock key. This panel displays NUM in bold letters when the key is on and displays the letters dimmed when the key is off. | | sbrIns | Handles the status of the Insert key. This panel displays INS in bold letters when the key is on and displays the letters dimmed when the key is off. | | sbrScrl | Handles the status of the Scroll Lock key. This panel displays SCRL in bold letters when the key is on and displays the letters dimmed when the key is off. | | sbrTime | Displays the current time. | | sbrDate | Displays the current date |
|
|
|
|
|
|
|
An eighth setting, sbrKana, is also associated with the Scroll Lock key. It displays KANA in bold letters when the key is on and displays dimmed letters when the key is off. The KANA indicator is a special setting for Japanese programs.  |
|
|
|
|
|
|
|
|
|
|
The AutoSize property of each panel has three settings that help determine the size of the panel. The default setting, NoAutoSize, sets the size of the panel to the dimension specified in the MinWidth property; this size does not change as other panels are added and removed. The sbrContents setting sets the size of the panel to fit the text that the panel contains, whether this is text you enter or the text used for the key status and date/time panels. The final setting, sbrSpring, allows panels to stretch to fit the width of the status bar. This setting prevents any empty space from being present in the bar. |
|
|
|
|
|
|
|
|
|
No matter which setting you choose for the AutoSize property, a panel is not made smaller than the dimension set by the MinWidth property.  |
|
|
|
|
|
|
|
|
|
|
One final property of note is the Bevel property. As stated previously, this property determines whether and how the 3D effects of the panel are displayed. This property has three settings: sbrNoBevel, which produces a flat panel; sbrInset (the default), which produces a panel that |
|
|
|
|
|